package com.wyp168.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wyp168.common.utils.PageUtils;
import com.wyp168.gulimall.product.entity.BrandEntity;
import com.wyp168.gulimall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author wyp168
 * @email 2721255240@qq.com
 * @date 2022-10-22 12:09:10
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    /**
     * 根据菜单id，返回对应的品牌id集合
     * @param catId 菜单id
     * @return
     */
    List<BrandEntity> getBrandsById(Long catId);
}

